﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
//using Logger = Garlic.CC.Utility.Logger;
using Garlic.DAL;
using Garlic.Infrustructure;

namespace Garlic.BLL.BusinessDeal
{
    public class StTerminalManager
    {
        StTerminalDAL dal = new StTerminalDAL();

        /// <summary>
        /// 得到所有的码头代码。
        /// </summary>
        /// <returns></returns>
        public DataTable GetAllTerminal()
        {
           return dal.GetTable();
        }

        /// <summary>
        /// 得到所有配置表里的信息。
        /// </summary>
        /// <param name="strWhere"></param>
        /// <param name="strOrder"></param>
        /// <returns></returns>
        public DataTable GetAllRef_Code(string strWhere, string strOrder)
        {
            return dal.GetTable_Ref_Code(strWhere, strOrder);
        }

        /// <summary>
        /// 得到所有港口信息。
        /// </summary>
        /// <param name="strWhere"></param>
        /// <param name="strOrder"></param>
        /// <returns></returns>
        public DataTable GetAllPort(string strWhere, string strOrder)
        {
            return dal.GetTable_ALL_Ports(strWhere, strOrder);
        }
        /// <summary>
        /// 的到所有港口特定字段信息
        /// </summary>
        /// <param name="strText"></param>
        /// <returns></returns>
        public DataTable GetDataTabelTreeView(string strWhere, string strOrder)
        {
            return dal.GetTable_Ref_Code(strWhere, strOrder);
        }
        
    }//end class
}
